package com.zd.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 学生表
 * </p>
 *
 * @author TSP
 * @since 2021-08-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sc_student")
@ApiModel(value="Student对象", description="学生表")
public class Student implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "学生ID")
    @TableId(value = "stu_id", type = IdType.AUTO)
    private Integer stuId;

    @ApiModelProperty(value = "人员ID")
    @TableField("user_id")
    private Integer userId;

    @ApiModelProperty(value = "班级ID")
    @TableField("class_id")
    private Integer classId;

    @ApiModelProperty(value = "10位学号")
    private String stuNumber;

    @ApiModelProperty(value = "入学日期")
    private LocalDate entryDate;


}
